The Dreamweaver JavaScript API > Translation functions > dreamweaver.useTranslatedSource()

 

dreamweaver.useTranslatedSource()

Availability

Dreamweaver 2.0

Description

Specifies that the values returned by dom.nodeToOffsets() and dom.getSelection() and used by dom.offsetsToNode() and dom.setSelection() should be offsets into the translated source (the HTML contained in the DOM after a translator is run), not the untranslated source.

Note: This function is relevant only in Property Inspector files.

Arguments

bUseTranslatedSource

The default value of the argument is false. Dreamweaver automatically uses the untranslated source for subsequent calls to dw.getSelection(), dw.setSelection(), dw.nodeToOffsets(), and dw.offsetsToNode() when the script that calls dw.useTranslatedSource() finishes executing, if dw.useTranslatedSource() is not explicitly called with an argument of false before then.

Returns

Nothing.

Enabler

None.